package com.itboy.mall.pms.spuinfo.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * spu信息对象 mall_spu_info
 *
 * @author itboy
 * @date 2021-07-31
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("mall_spu_info")
public class MallSpuInfo implements Serializable {

    private static final long serialVersionUID=1L;


    /**
     * 商品id
     */
    @TableId(value = "id")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 商品名称
     */
    private String spuName;

    /**
     * 商品描述
     */
    private String spuDescription;

    /**
     * 所属分类id
     */
	@JsonSerialize(using = ToStringSerializer.class)
    private Long catalogId;

    /**
     * 品牌id
     */
	@JsonSerialize(using = ToStringSerializer.class)
    private Long brandId;

    /**
     * 重量
     */
    private BigDecimal weight;

    /**
     * 上架状态[0 - 下架，1 - 上架]
     */
    private Integer publishStatus;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
